package com.huahua.api.entity.vo.novel;

import com.huahua.api.entity.pojo.ApiNovelBookContent;
import lombok.Data;

/**
 * @author LoveHuahua
 * @date 2021年09月19日 14:10
 * @description believe in yourself
 */
@Data
public class ApiBookContentVo {
    /**
     * 下一章id
     */
    private Integer nextId;
    /**
     * 下一章标题
     */
    private String nextTitle;

    /**
     * 上一章id
     */
    private Integer preId;
    /**
     * 上一章标题
     */
    private String preTitle;

    /**
     * 章节内容
     */
    private String content;

    /**
     * 标题
     */
    private String title;

    public ApiBookContentVo convert(ApiNovelBookContent content){
        this.content = content.getContent();
        this.title = content.getContentTitle();
        return this;
    }
}
